package io.renren.modules.withdraw_cash.dao;

import io.renren.modules.withdraw_cash.entity.V9WithdrawCashEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * 佣金提现审核
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2019-09-19 17:30:23
 */
@Mapper
public interface V9WithdrawCashDao extends BaseMapper<V9WithdrawCashEntity> {

    @Update("update v9_withdraw_cash set status = 2 where wc_id = #{id}")
    int pass(@Param("id")Integer wc_id);


    @Update("update v9_withdraw_cash set status = 3 where wc_id = #{id}")
    int returned(@Param("id")Integer wc_id);

}
